#ifndef FACESERVER_H
#define FACESERVER_H

#include <QMainWindow>
#include<QTcpSocket>
#include <QTcpServer>
#include <facemanage.h>
#include <opencv.hpp>
QT_BEGIN_NAMESPACE
namespace Ui { class faceServer; }
QT_END_NAMESPACE

class faceServer : public QMainWindow
{
    Q_OBJECT

public:
    faceServer(QWidget *parent = nullptr);
    ~faceServer();
signals:
    void query(cv::Mat & matimg);
    void sendinfo(QVariant senfin);
private:
    Ui::faceServer *ui;
    QTcpServer serverTcp;
    QTcpSocket* clienTcp;
    quint64 recvSize;
    facemanage fmobj;
private slots:
    void connectFunct();
    void readDataFunct();

};
#endif // FACESERVER_H
